#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
typedef struct stu
{
	int num;
	int S;
	int C;
	int sum;
}stu;
int main()
{
	int n = 0;
	scanf("%d", &n);
	stu* ps = (stu*)calloc(n, sizeof(stu));
	for (int i = 0; i < n; i++)
	{
		scanf("%d%d%d", &ps[i].num, &ps[i].S, &ps[i].C);
		ps[i].sum = ps[i].S * 7 + ps[i].C * 3;
		if (ps[i].sum >= 800 && (ps[i].S + ps[i].C) > 140)
			printf("Excellent\n");
		else
			printf("Not excellent\n");
	}
	return 0;
}